package zy011;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import java.util.HashMap;
import java.util.Map;

public class zy3 {
	public static void main(String[] args) throws IOException {
		Reader reader=new FileReader("d:\\sort.txt");
		BufferedReader br=new BufferedReader(reader);
		Writer out=new FileWriter("sort.txt");
		BufferedWriter bw=new BufferedWriter(out);
		Map<Integer,String> map=new HashMap<>();
		String line=null;
		while((line=br.readLine())!=null){
			String[] split = line.split(".");
			if(split.length==2){
				map.put(Integer.parseInt(split[0]), split[1]);
			}
		}
		for(int i=0;i<6;i++){
			bw.write(i+"."+map.get(i));
			bw.newLine();
		}
		br.close();
		bw.close();
	}
}
